package shop.services.front.organizeAccount.dao.impl;

import org.springframework.stereotype.Repository;
import shop.core.common.dao.BaseDao;
import shop.core.common.dao.page.PagerModel;
import shop.services.front.organizeAccount.bean.OrganizeAccount;
import shop.services.front.organizeAccount.dao.OrganizeAccountDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/22.
 */
@Repository("organizeAccountDaoFront")
public class OrganizeAccountDaoImpl implements OrganizeAccountDao {
    @Resource
    private BaseDao dao;
    public void setDao(BaseDao dao) {
        this.dao = dao;
    }


    @Override
    public int insert(OrganizeAccount organizeAccount) {
        return dao.insert("front.organizeAccount.insert", organizeAccount);
    }

    @Override
    public int delete(OrganizeAccount organizeAccount) {
        return 0;
    }

    @Override
    public int update(OrganizeAccount organizeAccount) {
        return 0;
    }

    @Override
    public OrganizeAccount selectOne(OrganizeAccount organizeAccount) {
        return null;
    }

    @Override
    public PagerModel selectPageList(OrganizeAccount organizeAccount) {
        return null;
    }

    @Override
    public List<OrganizeAccount> selectList(OrganizeAccount organizeAccount) {
        return dao.selectList("front.organizeAccount.selectList", organizeAccount);
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public OrganizeAccount selectById(String id) {
        return null;
    }

    @Override
    public List<OrganizeAccount> selectListByAccount(OrganizeAccount organizeAccount) {
        return dao.selectList("front.organizeAccount.selectListByAccount",organizeAccount);
    }
}
